<!DOCTYPE html>
<html lang="zh-CN">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <meta http-equiv="X-UA-Compatible" content="ie=edge">
  <title>Document</title>
</head>

<body>
  <!-- 
    "use strict";
      默认使用严格模式
  -->
  <script>
    // 1.创建类class
    class Star {
      constructor(uanme, age) {
        this.uanme = uanme;
        this.age = age;
      }
    };
    let ldh = new Star("刘德华", 29);
    console.log(ldh);
  </script>
</body>

</html>